import Vue from "vue";
import Router from "vue-router";
import HelloWorld from "@/components/HelloWorld";
import Main from "@/components/Main";
import Mycontent from "@/components/Mycontent";

import Aboutpage from "@/components/page/aboutPage";
import LoginPage from "@/components/login";

import Sleeppage from "@/components/page/Sleeppage";
import Srecord from "@/components/page/Srecord";
import loginTest from "../login.vue";
import Homepage from "@/components/Homepage";
import motion from "@/components/Motion.vue";
import Life from "@/components/Life";
import Symptom from "@/components/Symptom";

import Web from "@/components/web/index";
Vue.use(Router);

export default new Router({
  routes: [
        {
      path: "/loginTest",
      name: "loginTest",
      component: loginTest
    },
    {
      path: "/Main",
      name: "Main",
      component: Main,
      children: [
        {
          path: "/motion",
          name: "Homepage",
          component: Homepage
        },
        {
          path: "/motion",
          name: "motion",
          component: motion
        },
        {
          path: "/Life",
          name: "Life",
          component: Life
        },
        {
          path: "/Symptom",
          name: "Symptom",
          component: Symptom
        }
      ]
    },
    {
      path: "/web",
      name: "web",
      component: Web
    },
    {
      path: "/aboutme",
      name: "Aboutpage",
      component: Aboutpage
    },
    {
      path: "/",
      name: "loginPage",
      component: LoginPage
    },
    {
      path: "/Sleeppage",
      name: "Sleeppage",
      component: Sleeppage
    },
    {
      path: "/Srecord",
      name: "Srecord",
      component: Srecord
    }
  ]
});
